
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchMenuSpan: 6,
  searchSize: 'mini',
  column: [ {
    label: '字典名称',
    prop: 'dictName',
    search: true,
    width: '200%',
  }, {
    label: '类型',
    prop: 'dictType',
    width: '200%',
    editDisabled: true,
    rules: [{
      required: true,
      message: '请输入字典类型',
      trigger: 'blur'
    }]
  }, {
    label: '描述',
    prop: 'dictDesc',
    width: '300%',
    rules: [{
      required: true,
      message: '请输入字典描述',
      trigger: 'blur'
    }]
  }, {
    label: '状态',
    prop: 'useFlag',
    width: '100%',
    search: true,
    type: 'select',
    dicData: [{
      label: '启用',
      value: 'Y'
    }, {
      label: '禁用',
      value: 'N'
    }]
  }, {
    width: '180%',
    label: '创建时间',
    prop: 'createdTime',
    type: 'datetime',
    addDisplay: false,
    editDisabled: true,
    format: 'yyyy-MM-dd HH:mm',
    valueFormat: 'yyyy-MM-dd HH:mm:ss'
  }]
}

export const tableDictItemOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchSize: 'mini',
  column: [{
    label: '类型',
    prop: 'dictType',
    width: '150%',
    addDisabled: true,
    editDisabled: true
  }, {
    label: '标签名',
    prop: 'dictLabel',
    width: '150%',
    rules: [{
      required: true,
      message: '请输入标签名',
      trigger: 'blur'
    }]
  }, {
    width: '180%',
    label: '数据值',
    prop: 'dictValue',
    rules: [{
      required: true,
      message: '请输入数据值',
      trigger: 'blur'
    }]
  }, {
    label: '描述',
    prop: 'dictDesc',
    width: '280%',
    rules: [{
      required: true,
      message: '请输入字典描述',
      trigger: 'blur'
    }]
  }, {
    label: '优先级',
    width: '90%',
    prop: 'priority',
    type: 'number',
    rules: [{
      required: true,
      message: '请输入排序',
      trigger: 'blur'
    }]
  }, {
    width: '80%',
    label: '状态',
    prop: 'useFlag',
    type: 'select',
    dicData: [{
      label: '启用',
      value: 'Y'
    }, {
      label: '禁用',
      value: 'N'
    }]
  }, {
    width: '160%',
    label: '创建时间',
    prop: 'createdTime',
    type: 'datetime',
    addDisplay: false,
    editDisabled: true,
    format: 'yyyy-MM-dd HH:mm',
    valueFormat: 'yyyy-MM-dd HH:mm:ss'
  }]
}
